package com.xuexiang.xuidemo.ability;

import ohos.aafwk.content.Intent;

import com.xuexiang.xuidemo.slice.ImageAbilitySlice;
import com.xuexiang.xuidemo.slice.PictureSelectSlice;
import com.xuexiang.xuidemo.slice.imageview.ImageLoadStrategySlice;
import com.xuexiang.xuidemo.slice.imageview.RadiusImageViewSlice;
import com.xuexiang.xuidemo.slice.imageview.edit.ImageEditSlice;
import com.xuexiang.xuidemo.slice.imageview.preview.slice.PreviewImageSlice;

public class ImageAbility extends BaseStatusAbility {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(ImageAbilitySlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, RadiusImageViewSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, PictureSelectSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, PreviewImageSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, ImageEditSlice.class.getName());
        addActionRoute(Intent.ACTION_QUERY_WEATHER, ImageLoadStrategySlice.class.getName());
    }
}
